<template>
  <div>
      <el-button @click="openLive">进入直播页面</el-button>
      <el-button @click="toPull">进入观看直播页面</el-button>
    <iframe :src="this.pullUrl" frameborder="0" style="width: 1600px;height: 1000px"></iframe>
  </div>

</template>

<script>
import {goSinatv,toSinatv} from "@/api/sinatv/sinatv";

export default {
  data(){
    return{
      pushUrl:'http://localhost:9302/live-push.html',
      pullUrl:'http://localhost:9302/live-pull.html'
    }
  },
  methods: {
    openLive(){
      window.open(this.pushUrl)
    },
    toPull(){
      window.open(this.pullUrl)
    }
  },
  mounted() {
    goSinatv().then(resp=>{

    })
  }
}
</script>

